<T:ViewBase x:Class="WPFExcelReport.TEKLEKL02"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"  
                    Loaded="Window_Loaded"
     >
    <T:ViewBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>  
    </T:ViewBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
        <WrapPanel>
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=EKLMANDANT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwEKLEKL.EKLMANDANT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=EKLLEKLNR:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwEKLEKL.EKLLEKLNR}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=EKLAENZL:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwEKLEKL.EKLAENZL}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=EKLAENB:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwEKLEKL.EKLAENB}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=EKLAEND:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwEKLEKL.EKLAEND}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=EKLNEUB:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwEKLEKL.EKLNEUB}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=EKLNEUD:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwEKLEKL.EKLNEUD}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=EKLKUNDNR:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwEKLEKL.EKLKUNDNR}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=EKLWERK:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwEKLEKL.EKLWERK}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=EKLABT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwEKLEKL.EKLABT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=EKLWAKZ:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwEKLEKL.EKLWAKZ}" Width="Auto" />
            </Grid> 
        </WrapPanel>
        <WrapPanel Visibility="{Binding IsEKLEKL,Converter={StaticResource ResourceKey=bv}}">
                <ex:TBASE1></ex:TBASE1>
            </WrapPanel>
        </StackPanel>
        <DataGrid  Grid.Row="1"  VerticalAlignment="Top"  
                                   AutoGenerateColumns="False"
                                   EnableRowVirtualization="False"
                                   VerticalScrollBarVisibility="Auto"
                                   HorizontalScrollBarVisibility="Auto"
                                   HeadersVisibility="Column"     
                                   ItemsSource="{Binding vwEKLEKL}"  
                                    IsSynchronizedWithCurrentItem="True"
                                   SelectedItem="{Binding Path=dwEKLEKL, Mode=TwoWay}"
                                   x:Name="dlgVKP"  
                                   RowDetailsVisibilityMode="Visible" Grid.ColumnSpan="2" Margin="0,0.2,0.2,0"
                    >
            <DataGrid.Columns> 
                <DataGridTextColumn x:Name="EKLMANDANT"
                                    Binding="{Binding Path=EKLMANDANT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKLMANDANT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKLLEKLNR"
                                    Binding="{Binding Path=EKLLEKLNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKLLEKLNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKLAENZL"
                                    Binding="{Binding Path=EKLAENZL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKLAENZL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKLAENB"
                                    Binding="{Binding Path=EKLAENB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKLAENB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKLAEND"
                                    Binding="{Binding Path=EKLAEND, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKLAEND}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKLNEUB"
                                    Binding="{Binding Path=EKLNEUB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKLNEUB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKLNEUD"
                                    Binding="{Binding Path=EKLNEUD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKLNEUD}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKLKUNDNR"
                                    Binding="{Binding Path=EKLKUNDNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKLKUNDNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKLWERK"
                                    Binding="{Binding Path=EKLWERK, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKLWERK}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKLABT"
                                    Binding="{Binding Path=EKLABT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKLABT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKLWAKZ"
                                    Binding="{Binding Path=EKLWAKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKLWAKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKLART"
                                    Binding="{Binding Path=EKLART, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKLART}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKLVAR"
                                    Binding="{Binding Path=EKLVAR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKLVAR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKLBHS"
                                    Binding="{Binding Path=EKLBHS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKLBHS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKLOART"
                                    Binding="{Binding Path=EKLOART, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKLOART}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKLOVAR"
                                    Binding="{Binding Path=EKLOVAR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKLOVAR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKLLIEFNR"
                                    Binding="{Binding Path=EKLLIEFNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKLLIEFNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKLLIEFLENR"
                                    Binding="{Binding Path=EKLLIEFLENR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKLLIEFLENR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKLLIEFLED"
                                    Binding="{Binding Path=EKLLIEFLED, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKLLIEFLED}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKLEINDAT"
                                    Binding="{Binding Path=EKLEINDAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKLEINDAT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKLPREIS"
                                    Binding="{Binding Path=EKLPREIS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKLPREIS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKLPREH"
                                    Binding="{Binding Path=EKLPREH, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKLPREH}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKLPREHGRP"
                                    Binding="{Binding Path=EKLPREHGRP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKLPREHGRP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKLPREHFKT"
                                    Binding="{Binding Path=EKLPREHFKT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKLPREHFKT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKLPWAEHRSL"
                                    Binding="{Binding Path=EKLPWAEHRSL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKLPWAEHRSL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKLVONDAT"
                                    Binding="{Binding Path=EKLVONDAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKLVONDAT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKLBISDAT"
                                    Binding="{Binding Path=EKLBISDAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKLBISDAT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKLRECHNR"
                                    Binding="{Binding Path=EKLRECHNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKLRECHNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKLWIDERR"
                                    Binding="{Binding Path=EKLWIDERR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKLWIDERR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKLERLKZ"
                                    Binding="{Binding Path=EKLERLKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKLERLKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKLURLAND"
                                    Binding="{Binding Path=EKLURLAND, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKLURLAND}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKLWR"
                                    Binding="{Binding Path=EKLWR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKLWR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKLPRFBEG"
                                    Binding="{Binding Path=EKLPRFBEG, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKLPRFBEG}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKLTEXTSCHL"
                                    Binding="{Binding Path=EKLTEXTSCHL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKLTEXTSCHL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKLZOLLTNR"
                                    Binding="{Binding Path=EKLZOLLTNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKLZOLLTNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKLLIZENZME"
                                    Binding="{Binding Path=EKLLIZENZME, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKLLIZENZME}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKLTEXT1"
                                    Binding="{Binding Path=EKLTEXT1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKLTEXT1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKLTEXT2"
                                    Binding="{Binding Path=EKLTEXT2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKLTEXT2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKLFILLER"
                                    Binding="{Binding Path=EKLFILLER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKLFILLER}}"
                                    Width="Auto" />
            </DataGrid.Columns>
        </DataGrid  >
    </Grid>
</T:ViewBase> 
 
